package com.zut.subject.domain.convert;

import com.zut.subject.domain.entity.SubjectOptionAnswerBo;
import com.zut.subject.infra.basic.entity.SubjectBrief;
import com.zut.subject.infra.basic.entity.SubjectJudge;
import com.zut.subject.infra.basic.entity.SubjectMultiple;
import com.zut.subject.infra.basic.entity.SubjectRadio;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface ConvertSubjectType {
    ConvertSubjectType INSTANCE= Mappers.getMapper(ConvertSubjectType.class);
    //转化为单选题
    List<SubjectRadio> toListSubjectRadio(List<SubjectOptionAnswerBo> optionList);
    //转化为多选题
    List<SubjectMultiple> toListSubjectMultiple(List<SubjectOptionAnswerBo> subjectOptionAnswerBoList);
    //转化为判断题
    List<SubjectJudge> toListSubjectJudge(List<SubjectOptionAnswerBo> subjectOptionAnswerBoList);


    List<SubjectOptionAnswerBo> soaBrief(List<SubjectBrief> subjectBriefList);

    SubjectOptionAnswerBo soaJudge(SubjectJudge subjectJudge);

    List<SubjectOptionAnswerBo> soaRadio(List<SubjectRadio> subjectRadioLIst);

    List<SubjectOptionAnswerBo> soaMultiple(List<SubjectMultiple> subjectMultipleList);

}
